let request = require('../../../utils/request');

let requestApi = {

};

//新增信友圈
requestApi.addFriendCircle = (data, loading = true) => {
	return request({
		url: '/userFriendCircle/add',
        method:'POST',
		data,
		loading,
	});
}

//删除信友圈
requestApi.deleteFriendCircle = (data, loading = true) => {
	return request({
		url: '/userFriendCircle/del',
        method:'POST',
		data,
		loading,
	});
}

//获取信友圈列表
requestApi.getFriendCircleList = (data, loading = true) => {
	return request({
		url: '/userFriendCircle/getList/v3',
		// url: '/userFriendCircle/getList',
		data,
		method:'POST',
		// loading,
	});
}

//获取信友圈详情
requestApi.getFriendCircleDetail = (data, loading = true) => {
	return request({
		url: '/userFriendCircle/detail/v2',
		data,
		// loading,
	});
}

//点赞
requestApi.FriendCircleLike = (data, loading = false) => {
	return request({
		url: '/friendCircleLike/like',
        method:'POST',
		data,
		// loading,
	});
}


// 评论
requestApi.addFriendCircleComment = (data, loading = true) => {
	return request({
		url: '/friendCircleComment/add',
        method:'POST',
		data,
		loading,
	});
}

// 删除评论
requestApi.deleteFriendCircleComment = (data, loading = true) => {
	return request({
		url: '/friendCircleComment/del',
        method:'POST',
		data,
		loading,
	});
}

module.exports = requestApi;